package com.mall.mapper;

import com.mall.bean.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by xiaochao on 2017/7/23.
 */
@Repository
public interface UserMapper {

    List<User> getUserList();

    User selectByUserNamePassword(@Param("username") String username, @Param("password") String password);

    User selectByName(@Param("username") String username);

    User selectByUserId(@Param("id") String id);

    int insertUser(User user);

    int insertUserByUser(@Param("user") User user);

    int deleteById(@Param("id") String id);

    int updateByUserId(User user);




}
